5.3
MEDIUM CVSS 4.0
CVE-2026-5318
LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write
Description

A weakness has been identified in LibRaw up to 0.22.0. This impacts the function HuffTable::initval of the file src/decompressors/losslessjpeg.cpp of the component JPEG DHT Parser. This manipulation of the argument bits[] causes out-of-bounds write. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 0.22.1 will fix this issue. Patch name: a6734e867b19d75367c05f872ac26322464e3995. It is advisable to upgrade the affected component.

INFO

Published Date :

April 2, 2026, 3:16 a.m.

Last Modified :

April 2, 2026, 3:16 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-5318 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
CVSS 4.0 MEDIUM [email protected]
Solution
Update LibRaw to version 0.22.1 to fix an out-of-bounds write vulnerability.
  • Upgrade LibRaw to version 0.22.1.
  • Apply the patch a6734e867b19d75367c05f872ac26322464e3995.
  • Update the affected JPEG DHT Parser component.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-5318 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-5318 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-5318 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Apr. 02, 2026

    Action Type Old Value New Value
    Added Description A weakness has been identified in LibRaw up to 0.22.0. This impacts the function HuffTable::initval of the file src/decompressors/losslessjpeg.cpp of the component JPEG DHT Parser. This manipulation of the argument bits[] causes out-of-bounds write. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 0.22.1 will fix this issue. Patch name: a6734e867b19d75367c05f872ac26322464e3995. It is advisable to upgrade the affected component.
    Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
    Added CVSS V2 (AV:N/AC:L/Au:N/C:N/I:N/A:P)
    Added CWE CWE-119
    Added CWE CWE-787
    Added Reference https://github.com/biniamf/pocs/tree/main/libraw_lljpeg
    Added Reference https://github.com/LibRaw/LibRaw/
    Added Reference https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995
    Added Reference https://github.com/LibRaw/LibRaw/issues/794
    Added Reference https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499
    Added Reference https://vuldb.com/submit/780538
    Added Reference https://vuldb.com/vuln/354650
    Added Reference https://vuldb.com/vuln/354650/cti
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.